<template>
  <el-card class="app-container">
    <c-u-r-d-table :option="option"/>
  </el-card>
</template>

<script>

import ColumnType from '@/framework/constant/ColumnType'
import { productRegisterApi } from '@/feature/pdt/infra/api/productRegisterApi'
import CURDTable from '@/framework/components/table/CURDTable'

export default {
  components: { CURDTable },
  data() {
    return {
      option: {
        requestApi: productRegisterApi,
        columns: [
          {
            label: 'ID',
            prop: 'productNo'
          },
          {
            label: '上新时间',
            prop: 'newArrivalTime'
          },
          {
            label: '总销量',
            prop: 'salesNum',
            type: ColumnType.NUMBER
          },
          {
            label: '日常活动',
            prop: 'dailyActivity'
          },
          {
            label: '小黑盒',
            prop: 'littleBlackBox'
          },
          {
            label: '导购',
            prop: 'shoppingGuide'
          },
          {
            label: '导购',
            prop: 'theMilkyWay'
          },
          {
            label: '微详情1',
            prop: 'littleDetail1'
          },
          {
            label: '微详情2',
            prop: 'littleDetail2'
          },
          {
            label: '微详情3',
            prop: 'littleDetail3'
          },
          {
            label: '姓名',
            prop: 'username'
          },
          {
            label: '新品运营',
            prop: 'newProductOp'
          },
          {
            label: '搭配购',
            prop: 'rangeBuying'
          },
          {
            label: '搜索视频编码',
            prop: 'searchVideoNo'
          },
          {
            label: '搜索视频姓名',
            prop: 'searchVideoUsername'
          },
          {
            label: '订阅',
            prop: 'subscription'
          },
          {
            label: '猜你喜欢编码',
            prop: 'guestLikeNo'
          },
          {
            label: '猜你喜欢姓名',
            prop: 'guestLikeUsername'
          },
          {
            label: '改价',
            prop: 'alertPriceMan'
          },
          {
            label: '创建时间',
            type: ColumnType.DATETIME,
            hiddenInForm: true,
            prop: 'gmtCreate'
          },
          {
            label: '修改时间',
            type: ColumnType.DATETIME,
            hiddenInForm: true,
            prop: 'gmtModified'
          }
        ]
      }
    }
  },
  methods: {}
}
</script>

